home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / E / PsiloPlayer / Src / Modules / replay / README < prev    next >
Encoding:
Text File  |  1996-03-21  |  1.2 KB  |  30 lines

  1.  
  2. A bit of info on the 'replayer.m' module. It contains some pretty
  3. useful routines for writing music replayers. They go a little bit
  4. like this:
  5.  
  6.   dti_AudioAlloc() - attempts to allocate the audio channels for
  7.                      exclusive use, returns bool as success.
  8.  
  9.   dti_AudioFree()  - frees the audio channels if they were allocated
  10.                      by dti_AudioFree(), does nothing otherwise. Safe
  11.                      to call in any case.
  12.  
  13.   dti_StartInt(c)  - where c is a pointer to an interrupt routine.
  14.                      This function sets up a soft-interrupt triggered
  15.                      by a CIA timer interrupt (the net result being
  16.                      that you get a timer interrupt that doesn't
  17.                      block serial transfer and such) for the
  18.                      specified code. Returns bool as success.
  19.  
  20.   dti_StopInt()    - stops and deallocates the interrupts installed
  21.                      by dti_StartInt(), does nothing otherwise.
  22.  
  23.   dti_SetSpeed(s)  - sets the speed of the timer interrupt installed
  24.                      by dti_StartInt() to the specified number of
  25.                      beats per minute. The interrupt must be running
  26.                      for this to work!
  27.  
  28. Check out 'jamcracker.e' for an example on usage.
  29.  
  30.